package com.cyj.dream.core.aspect.annotation.log;

import com.cyj.dream.core.aspect.enums.BusinessType;
import com.cyj.dream.core.aspect.enums.OperatorType;

import java.lang.annotation.*;

/**
 * The interface Log record.
 *
 * @Description: 操作日志记录处理
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.admin.aspect.annotation.log
 * @Author: ChenYongJia
 * @CreateTime: 2021-4-2 09:40:49
 * @Email chen87647213@163.com
 * @Version 1.0
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface LogRecord {

    /**
     * 模块
     *
     * @return the string
     */
    String title() default "";

    /**
     * 功能
     *
     * @return the operator type
     */
    OperatorType operatetype() default OperatorType.OTHER;

    /**
     * 操作人类别
     *
     * @return the business type
     */
    BusinessType vistortype() default BusinessType.MANAGE;

}
